package net.jxtz.jxtzos.entity.achievements;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author a123
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("achievement_option")
public class Achievement implements Serializable {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long fatherId;

    private String achieveName;

    /**
     * 基本产值
     */
    private Double optionValue;

    /**
     * 最大产值
     */
    private Double maxOptionValue;

    /**
     * 最小绩点数
     */
    private Integer minNumber;

    /**
     * 最大绩点数
     */
    private Integer maxNumber;

    /**
     * 单位
     */
    private String unit;

    /**
     * 备注
     */
    private String remark;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private List<Achievement> achievements;

    @TableField(fill = FieldFill.INSERT)
    private Integer createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateTime;

}
